package com.blink.base;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.TimeUnit;

/**
 * <Description> </Description>
 * <ClassName> TestZK</ClassName>
 *
 * @Author liuxianzhao
 * @Date 2018年01月12日 15:34
 */
public abstract class TestZK {
    protected Logger logger = LoggerFactory.getLogger(this.getClass().getSimpleName());

    protected void sleep() {
        try {
            TimeUnit.MINUTES.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    protected void sleep(long seconds) {
        try {
            TimeUnit.SECONDS.sleep(seconds);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}